Optimal. Leaf size=14 \[ \tan ^{-1}\left (\frac{\cot (x)}{\sqrt{-\csc ^2(x)}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0202224, antiderivative size = 14, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {3657, 4122, 217, 203} \[ \tan ^{-1}\left (\frac{\cot (x)}{\sqrt{-\csc ^2(x)}}\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3657
Rule 4122
Rule 217
Rule 203
Rubi steps
\begin{align*} \int \sqrt{-1-\cot ^2(x)} \, dx &=\int \sqrt{-\csc ^2(x)} \, dx\\ &=\operatorname{Subst}\left (\int \frac{1}{\sqrt{-1-x^2}} \, dx,x,\cot (x)\right )\\ &=\operatorname{Subst}\left (\int \frac{1}{1+x^2} \, dx,x,\frac{\cot (x)}{\sqrt{-\csc ^2(x)}}\right )\\ &=\tan ^{-1}\left (\frac{\cot (x)}{\sqrt{-\csc ^2(x)}}\right )\\ \end{align*}
Mathematica [B] time = 0.0181687, size = 30, normalized size = 2.14 \[ \frac{\csc (x) \left (\log \left (\cos \left (\frac{x}{2}\right )\right )-\log \left (\sin \left (\frac{x}{2}\right )\right )\right )}{\sqrt{-\csc ^2(x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.014, size = 15, normalized size = 1.1 \begin{align*} \arctan \left ({\cot \left ( x \right ){\frac{1}{\sqrt{-1- \left ( \cot \left ( x \right ) \right ) ^{2}}}}} \right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.62221, size = 23, normalized size = 1.64 \begin{align*} -\arctan \left (\sin \left (x\right ), \cos \left (x\right ) + 1\right ) + \arctan \left (\sin \left (x\right ), \cos \left (x\right ) - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] time = 1.81229, size = 55, normalized size = 3.93 \begin{align*} i \, \log \left (e^{\left (i \, x\right )} + 1\right ) - i \, \log \left (e^{\left (i \, x\right )} - 1\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{- \cot ^{2}{\left (x \right )} - 1}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] time = 1.18356, size = 15, normalized size = 1.07 \begin{align*} i \, \log \left ({\left | \tan \left (\frac{1}{2} \, x\right ) \right |}\right ) \mathrm{sgn}\left (\sin \left (x\right )\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]